package com.hddznet.uniplatform.sm.vo;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 
 * @author zhangkj
 *
 * @param <T>
 */
@ApiModel("分页返回值")
public class PageResp<T> {
    @ApiModelProperty("总条数")
	private long total;

	@ApiModelProperty("页码")
	private long index;

	@ApiModelProperty("页数")
	private long size;

	@ApiModelProperty("数据集合")
	private List<T> rows;

	public PageResp() {
		super();
	}

	public long getIndex() {
		return index;
	}

	public void setIndex(long index) {
		this.index = index;
	}

	public long getSize() {
		return size;
	}

	public void setSize(long size) {
		this.size = size;
	}

	public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

}
